<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<link rel="stylesheet" href="css/bootstrap.min.css">
		<script src="js/vue.js"></script>
		<script src="js/axios.min.js"></script>
	</head>
	<body>
		<div id="app">
			<table class="table table-bordered">
				<tr>
					<td>病患编号</td>
					<td>病患头像</td>
					<td>病患名称</td>
					<td>病患联系方式</td>
					<td>挂号科室</td>
					<td>挂号费</td>
					<td>挂号时间</td>
				</tr>
				<tr v-for="v in disease">
					<td>{{v.ID}}</td>
					<td><img :src="v.img" width="100px"></td>
					<td>{{v.name}}</td>
					<td>{{v.tel}}</td>
					<td>{{v.register}}</td>
					<td>{{v.price}}</td>
					<td>{{v.time}}</td>
				</tr>
			</table>
		</div>
	</body>
</html>
<script>
	var app = new Vue({
		el:"#app",
		data:{
			disease:[],
			name:"",
			tel:"",
			register:"",
			price:"",
			time:"",
			img:"",
		},methods:{
			
		},created:function(){
			axios.get("http://127.0.0.1:8080/list").then(function(res){
				console.log(res.data.data)
				app.disease=res.data.data
			})
		}
	})
</script>